<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="com.net.domain.UserType,com.net.domain.User,com.net.domain.Student,com.net.domain.Staff" %>

<style type="text/css">
table.sample {
	border-width: 1px;
	border-spacing: 2px;
	border-style: outset;
	border-color: gray;
	border-collapse: separate;
	background-color: white;
}
table.sample th {
	border-width: 1px;
	padding: 1px;
	border-style: inset;
	border-color: gray;
	background-color: white;
	-moz-border-radius: ;
}
table.sample td {
	border-width: 1px;
	padding: 1px;
	border-style: inset;
	border-color: gray;
	background-color: white;
	-moz-border-radius: ;
}
</style>
<table class="sample">
<%
User user=(User)request.getAttribute("user");
if(user.getUserType() == UserType.STUDENT.getUserType()) {
	%>

<tr><td>Roll Number </td> <td></td><td>${user.rollNo }</td></tr>
<tr><td>Register Number </td> <td></td><td>${user.registerNo }</td></tr>
<%}
%>
<%
if(user.getUserType() == UserType.STAFF.getUserType()) {
	%>
	<tr><td>Staff ID</td> <td></td><td>${user.staffId}</td></tr>
	<%}
%>
	
<tr><td>Name </td> <td></td><td>${user.firstName }</td></tr>
<tr><td>E-Mail </td> <td></td><td>${user.primaryEmail }</td></tr>
<tr><td>Secondary E-Mail </td> <td></td><td>${user.secondaryEmail }</td></tr>
<tr><td>DOB </td> <td></td><td>${user.dob }</td></tr>
<tr><td>communication address </td> <td></td><td>${user.communicationAddress }</td></tr>
<tr><td>mobile_no </td> <td></td><td>${user.mobileNo }</td></tr>
<tr><td>land line no </td> <td></td><td>${user.landLineNo }</td></tr>

</table>